public class E1 {
    public static void main(String[] args) {
        int i=1;
        int a=1;
        double sum=0;
        while (i<=10){
            sum+=a;
            i++;
            a*=i;
        }
        System.out.println(sum);
    }
}